CC     = g++
CFLAGS = -std=c++11 -I./Inc -pthread
ELF    = ./Elf/main
SRC    = $(wildcard ./Src/*.cpp)
OBJ    = $(patsubst ./Src/%.cpp, ./Obj/%.o, $(SRC))

$(ELF): $(OBJ)
	$(CC) $(CFLAGS) $^ -o $@

./Obj/%.o: ./Src/%.cpp
	$(CC) $(CFLAGS) -c $< -o $@

clean:
	rm -f $(OBJ) $(ELF)
